import java.awt.Color;
import java.util.ArrayList;
import java.util.Random;


public class DotGenerator {
	private ArrayList<Dot> dots;
	private int xdem;
	private int ydem;
	private Random generator;
	public  DotGenerator(int x, int y){
		generator = new Random();
		dots = new ArrayList<Dot>();
		this.xdem = x;
		this.ydem = y;
	}
	public void generateDot(){
		int radius = 20;
		int currX = generator.nextInt(xdem);
		int currY = generator.nextInt(ydem);
		float gA = generator.nextFloat();
		float gB = generator.nextFloat();
		float gC = generator.nextFloat();
		Color randColor = new Color(gA, gB, gC); 
		dots.add(new Dot(randColor, radius, currX, currY));
	}
	public ArrayList<Dot> gDots(){
		
		return dots;
	}
	public void setSize(){
		
	}
}
